package com.sjx.onelinecord.kotlininvoke

fun main() {

    var person = Person()
    person.setPersonListener(object : Person.MyInterface {
        override fun println() {
            println("invoke is successful")
        }

    })

    person.setInvokeListener {
        println(it)
    }

}